package com.koocloud.electroplatemanage.service;

import com.koocloud.electroplatemanage.common.pojo.ResponseTemplate;
import com.koocloud.electroplatemanage.pojo.IncomePartUnitVo;

import java.util.List;

/**
 * @program: electroplatemanage
 * @description: 来件单位Service接口
 * @author: zww
 * @create: 2020-10-08 17:15
 */
public interface IncomePartUnitService {
    //通过pk查询一条记录
    ResponseTemplate selectByPk(String pk);
    //查询所有记录
    ResponseTemplate selectAllData(String page, String limit,IncomePartUnitVo incomePartUnitVo);
    //插入一条记录
    ResponseTemplate insert(IncomePartUnitVo incomePartUnitVo);
    //批量插入记录
    ResponseTemplate batchInsert(List<IncomePartUnitVo> listIncomePartUnitVo);
    //逻辑删除一条记录
    ResponseTemplate delete(String pk,String deleteFlag);
    //通过pks批量逻辑删除记录
    ResponseTemplate batchDeleteByPks(List<String> listPks);
    //修改一条记录
    ResponseTemplate update(IncomePartUnitVo incomePartUnitVo);

    ResponseTemplate check(IncomePartUnitVo incomePartUnitVo);

    ResponseTemplate selectUnit(String idOrName);
}
